<!--<div class="user_content" xmlns:th="http://www.w3.org/1999/xhtml">-->
<link href="../../static/css/jeDate-test.css" rel="stylesheet" th:href="@{/css/jeDate-test.css}"/>
<link href="../../static/css/jedate.css" rel="stylesheet" th:href="@{/css/jedate.css}"/>
<script src="../../static/js/jquery.jedate.js" th:src="@{/js/jquery.jedate.js}"></script>
<script src="../../static/js/jedate-test.js" th:src="@{/js/jedate-test.js}"></script>
<div class="x_panel">
    <form action="#" id="findForm" method="post" class="form-horizontal" role="form">
        <div class="row">
            <div class="form-group">
                <label class="col-sm-1 control-label">事件编号</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" name="eventCode" th:value="${event?.eventCode}"/>
                </div>
                <label class="col-sm-1 control-label">事件标题</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" name="eventTitle" th:value="${event?.eventTitle}"/>
                </div>

                <label class="col-sm-1 control-label">事件状态</label>
                <div class="col-sm-3">
                    <select class="form-control" name="eventHandleType" id="eventHandleType">
                        <option value="">请选择...</option>
                        <option value="未处理" th:selected="${event.eventHandleType == '未处理'}">未处理</option>
                        <option value="处理中" th:selected="${event.eventHandleType == '处理中'}">处理中</option>
                        <option value="处理完" th:selected="${event.eventHandleType == '处理完'}">处理完</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-md-1 control-label">开始时间</label>
                <div class="col-md-3">
                    <input name="onDate" class="form-control" id="time5" readonly="readonly" placeholder="YYYY-MM-DD" th:value="${event?.onDate}"/>
                </div>
                <label class="col-md-1 control-label">结束时间</label>
                <div class="col-md-3">
                    <input name="outDate" class="form-control" id="time4" readonly="readonly" placeholder="YYYY-MM-DD" th:value="${event?.outDate}"/>
                </div>
                <div class="">
                    <button type="button" class="btn btn-primary pull-right" onclick="findForPublicSecurity()">查询
                    </button>
                    <button type="button" class="btn btn-primary pull-right" onclick="resutForPublicSecurity()">重置
                    </button>
                </div>
            </div>


        </div>
    </form>

</div>


<div class="row" style="margin-top: 20px">
    <div class="table-responsive">
        <table class="table table-striped jambo_table bulk_action">
            <thead>
            <tr class="headings">
                <th class="column-title" style="display: table-cell;">编号</th>
                <th class="column-title" style="display: table-cell;">事件编号</th>
                <th class="column-title" style="display: table-cell;">事件标题</th>
                <th class="column-title" style="display: table-cell;">事件来源</th>
                <th class="column-title" style="display: table-cell;">事件状态</th>
                <th class="column-title" style="display: table-cell;">操作</th>
            </tr>
            </thead>

            <tbody>
            <tr class="even pointer" th:each="data,iterStat : ${datas.content}">
                <td style="vertical-align: middle;" th:text="${iterStat.count}">1</td>
                <td style="vertical-align: middle;" th:text="${data.eventCode}">eventCode</td>
                <td style="vertical-align: middle;" th:text="${data.eventTitle}">eventTitle</td>
                <td style="vertical-align: middle;" th:text="${data.val}">eventLocation</td>
                <td style="vertical-align: middle;" th:text="${data.eventHandleType}">
                    cdate
                </td>
                <td style="vertical-align: middle;">
                    <button class="fa fa-pencil-square-o btn btn-round btn-default" th:id="${data.eventId}" onclick="see(this)" type="button">查看</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div id="pagination" class="col-md-12 pagination" th:replace="pagination :: pagination">
    </div>
</div>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/

    function resutForPublicSecurity() {
        $.goTo(/*[[@{/eventTurn/queryEventForList}]]*/"./event_list.html");
    }

    function findForPublicSecurity() {
        var findForm = $("#findForm").serialize();
        $.goTo(/*[[@{/eventTurn/queryEventForList}]]*/,findForm);
    }

    function see(obj) {
        var id = $(obj).attr("id");
        $.goTo("queryEventFindOne/"+id);
    }

    function up(number) {//分页跳转，上一页
        /*[+
         var findForm = $("#findForm").serialize();
         var number = parseInt(number);
         $.goTo("queryEventForList?page="+number,findForm);
         +]*/
    }

    function next(number) {//分页跳转，下一页
        /*[+
         var findForm = $("#findForm").serialize();
         var number = parseInt(number) + 2;
         $.goTo("queryEventForList?page="+number,findForm);
         +]*/
    }
    function pageTo(page) {
        /*[+
         var number = page;
         var findForm = $("#findForm").serialize();
         $.goTo("queryEventForList?page=" + number,findForm);
         +]*/
    }

    /*]]>*/
</script>




